]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Title bluetooth connections as "Tether"
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 4 Feb 2023 23:31:58 +0000 (20:31 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 4 Feb 2023 23:31:58 +0000 (20:31 -0300)
As per the latest mockups, Bluetooth network connections are simply
labeled "Tether". Override _getDefaultName in NMBluetoothToggle
and always return "Tether" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

js/ui/status/network.js

index 2fa08cca95fd989d949d78c486d2c9f24ef296c9..776f1ad8e6058a323e7dae0d884d028c64b6e733 100644 (file)
@@ -1836,6 +1836,11 @@ class NMBluetoothToggle extends NMDeviceToggle {
             'gnome-network-panel.desktop');
     }
 
+    _getDefaultName() {
+        // Translators: "Tether" from "Bluetooth Tether"
+        return _('Tether');
+    }
+
     _createDeviceMenuItem(device) {
         return new NMBluetoothDeviceItem(this._client, device);
     }